package com.bristua.barcode.customer.dao;

import com.bristua.barcode.customer.model.TCustomerAccount;
import com.bristua.barcode.customer.model.condition.TCustomerAccountExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TCustomerAccountMapper {
    long countByExample(TCustomerAccountExample example);

    int deleteByExample(TCustomerAccountExample example);

    int deleteByPrimaryKey(String customerAccountId);

    int insert(TCustomerAccount record);

    int insertSelective(TCustomerAccount record);

    List<TCustomerAccount> selectByExample(TCustomerAccountExample example);

    TCustomerAccount selectByPrimaryKey(String customerAccountId);

    int updateByExampleSelective(@Param("record") TCustomerAccount record, @Param("example") TCustomerAccountExample example);

    int updateByExample(@Param("record") TCustomerAccount record, @Param("example") TCustomerAccountExample example);

    int updateByPrimaryKeySelective(TCustomerAccount record);

    int updateByPrimaryKey(TCustomerAccount record);

    int batchUpdate(@Param("recordList") List<TCustomerAccount> recordList);

    int batchInsert(@Param("recordList") List<TCustomerAccount> recordList);

    int batchDelete(@Param("ids") String[] ids);
}